
			
			<div class="block">
			
				<div class="block_head">
					<div class="bheadl"></div>
					<div class="bheadr"></div>
					
					<h2>Ordini da Evadere</h2>
					
				</div>		<!-- .block_head ends -->
				
				<div class="block_content">
				
					<?php
						if (isset($_SESSION['user_message'])) {
							echo "<div class='message success'>".$_SESSION['user_message'] . "</div>";
							unset($_SESSION['user_message']);
						}
					?>

					<form action="" method="post">
					
						<table cellpadding="0" cellspacing="0" width="100%" class="sortable">
						
							<thead>
								<tr>
									<th>ID</th>
									<th>Data Ordine</th>
									<th>Totale</th>
									<th>Indirizzo</th>
									<th>Stato</th>
									<td>&nbsp;</td>
								</tr>
							</thead>
							
							<tbody>
								<?php
								foreach ($ordini as $row)
								{
									echo "<tr>";
									echo "<td>".$row->id."</td>";
									$data = date_create($row->dataOrdine);
									echo "<td>".$data->format('d/m/Y H:i')."</td>";
									echo "<td>".$row->totale."</td>";
									echo "<td>".$row->indirizzo."</td>";
									echo "<td>".$row->descrizione."</td>";

									echo "<td>". anchor('orders/details/'.$row->id,'vedi') ."</td>";
									echo "</tr>";
								}
								?>
							</tbody>
							
						</table>
								
						
						
						<div class="pagination right">
							<a href="#">&laquo;</a>
							<a href="#" class="active">1</a>
							<a href="#">2</a>
							<a href="#">3</a>
							<a href="#">4</a>
							<a href="#">5</a>
							<a href="#">6</a>
							<a href="#">&raquo;</a>
						</div>		<!-- .pagination ends -->
						
					</form>
					
				</div>		<!-- .block_content ends -->
				
				<div class="bendl"></div>
				<div class="bendr"></div>
			</div>		<!-- .block ends -->
			